﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第八十七题
//BC89 密码验证
//https://www.nowcoder.com/practice/895b3b552d80485cb5e426a0ebf9a251?tpId=107&tqId=33370&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

//用strcmp判断字符串是否一致

#include <stdio.h>
#include <string.h>

int main() {
    char s1[100];
    char s2[100];
    while (scanf("%s %s", s1, s2) != EOF) {
        if (strcmp(s2, s1) == 0) {
            printf("same\n");
        }
        else {
            printf("different\n");
        }
    }
    return 0;
}